<template>
	<view>
		<view class="openshop">
			<view class="openshopMain">
				<view class="open-name open-top">有无实体门店</view>
				<view class="sel-btn">
					<view class="er-li" :class="{ 'tab-active': tabIndex == 0 }" @click="tabClick(0)">无门店</view>
					<view class="er-li" :class="{ 'tab-active': tabIndex == 1 }" @click="tabClick(1)">有门店</view>
				</view>
			</view>
		</view>
		<view class="openshop conpaddin">
			<view class="title-ght">
				自提点信息
			</view>
			<view class="openshopMain">
				<view class="open-name">自提点名称</view>
				<view class="op-right">
					<input placeholder="名称需和门头名一致，小于10个字"/>
				</view>
			</view>
			<view class="openshopMain">
				<view class="open-name">自提点地址</view>
				<view class="op-right-coer">
					<input placeholder="请选择地址" placeholder-style="color:#333;"/>
					<image src="../../static/right.png"></image>
				</view>
			</view>
			<view class="openshopMain">
				<view class="open-name">详细地址</view>
				<view class="op-right">
					<input placeholder="例如：某某小区某栋某号"/>
				</view>
			</view>
			<view class="openshopMain">
				<view class="open-name">自提点小区</view>
				<view class="op-right">
					<input placeholder="自提点所属小区"/>
				</view>
			</view>
			<view class="openshopMain btomBor">
				<view class="open-name">经营主业</view>
				<view class="op-right-coer">
					<input placeholder="请选择主业" placeholder-style="color:#333;"/>
					<image src="../../static/right.png"></image>
				</view>
			</view>
			<view class="add-img" v-if="tabIndex == 1">
				<view class="add-comgj">
					<view class="tit-name">经营执照</view>
					<view class="comImage">
						<view class="txt">上传营业执照</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
				<view class="add-comgj">
					<view class="tit-name">自提点照片</view>
					<view class="comImage">
						<view class="txt">上传自提点照片</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
			</view>
			<view class="add-img" v-if="tabIndex == 0">
				<view class="add-comgj cdf-hj">
					<view class="tit-name">自提点照片</view>
					<view class="comImage">
						<view class="txt">上传营业执照</view>
						<image src="../../static/3.png"></image>
					</view>
				</view>
			</view>
			<view class="tishi">
				<view class="img">
					<image src="../../static/op-1.png"></image>
				</view>
				<text>通过团长微信二维码识别社群群主是否为团长 ，请确保照片清晰、完整、辨识度高 。</text>
				<view class="openlook">
					查看操作图片
					<image src="../../static/op-2.png"></image>
				</view>
			</view>
		</view>
		<view class="openshop">
			<view class="title-ght">
				个人信息
			</view>
			<view class="openshopMain btomBor">
				<view class="open-name">您的姓名</view>
				<view class="op-right">
					<input placeholder="请输入真实姓名"/>
				</view>
			</view>
			
			<view class="add-img btomBor">
				<view class="add-comgj">
					<view class="tit-name">身份证人像面</view>
					<view class="comImage">
						<view class="txt">上传人像面</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
				<view class="add-comgj">
					<view class="tit-name">身份证国徽面</view>
					<view class="comImage">
						<view class="txt">上传国徽面</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
			</view>
			<view class="openshopMain">
				<view class="open-name">手机号</view>
				<view class="op-coer ">
					<input placeholder="请输入手机号"/>
					<view class="huoCode">获取验证码</view>
				</view>
			</view>
			<view class="openshopMain">
				<view class="open-name">验证码</view>
				<view class="op-right">
					<input placeholder="请输入手机验证码"/>
				</view>
			</view>
		</view>
		<view class="openshop conpaddin">
			<view class="title-ght">
				资质信息
			</view>
			<view class="add-img">
				<view class="add-comgj">
					<view class="tit-name">团长微信二维码</view>
					<view class="comImage">
						<view class="txt">上传团长微信二维码</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
				<view class="add-comgj">
					<view class="tit-name">微信群截图</view>
					<view class="comImage">
						<view class="txt">上传微信群截图 </view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
			</view>
			<view class="tishi">
				<view class="img">
					<image src="../../static/op-1.png"></image>
				</view>
				<text>通过团长微信二维码识别社群群主是否为团长 ，请确保照片清晰、完整、辨识度高 。</text>
				<view class="openlook">
					查看操作图片
					<image src="../../static/op-2.png"></image>
				</view>
			</view>
		</view>
		
		<view class="openshop conpaddin">
			<view class="openshopMain btomBor">
				<view class="open-name open-top">冷藏/冷冻设备</view>
				<view class="sel-btn">
					<view class="er-li" :class="{ 'tab-active': refrigeration == 0 }" @click="refrigerationClick(0)">无</view>
					<view class="er-li" :class="{ 'tab-active': refrigeration == 1 }" @click="refrigerationClick(1)">有</view>
				</view>
			</view>
			<view class="add-img"  v-if="tabIndex == 1">
				<view class="add-comgj">
					<view class="tit-name">团长微信二维码</view>
					<view class="comImage">
						<view class="txt">上传团长微信二维码</view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
				<view class="add-comgj">
					<view class="tit-name">微信群截图</view>
					<view class="comImage">
						<view class="txt">上传微信群截图 </view>
						<image src="../../static/2.png"></image>
					</view>
				</view>
			</view>
			<view class="tishi" v-if="tabIndex == 1">
				<view class="img">
					<image src="../../static/op-1.png"></image>
				</view>
				<text>设备包括冰柜、冰箱等，请确保照片完整、清晰</text>
				<view class="openlook">
					查看操作图片
					<image src="../../static/op-2.png"></image>
				</view>
			</view>
			<view class="tishi" v-else>
				<view class="img">
					<image src="../../static/op-1.png"></image>
				</view>
				<text>部分商品到货后需要冷冻/冷藏储存，自提点需要有对应的保存设备，方可售卖冻品。</text>
			</view>
		</view>
		<view class="openshop">
			<view class="openshopMain">
				<view class="open-name open-top">邀请码（非必填）</view>
				<view class="op-right">
					<input placeholder="请填写邀请码"/>
				</view>
			</view>
		</view>
		<view class="fiweboom">
			<view class="comfer" @click="agreementClick">
				<image v-if="agreement" src="../../static/op-3.png"></image>
				<image v-else src="../../static/bai.png"></image>
				<view class="">
					我已阅读并同意<text>《京东拼拼团长服务协议》</text>内容
				</view>
			</view>
			<view class="submitReview" @click="submitforReview">提交审核</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabIndex:0,//有无门店
				refrigeration:0,//冷藏
				agreement:false
			}
		},
		methods:{
			tabClick(i){
				this.tabIndex = i
			},
			refrigerationClick(i){//冷藏
				this.refrigeration = i
			},
			submitforReview(){
				uni.navigateTo({
					url:"/pages/home-btn/pages/submitforReview/submitforReview"
				})
			},
			agreementClick(){
				this.agreement = !this.agreement
			}
		}
	}
</script>

<style lang="scss" scoped>
	page{
		padding-bottom: 30rpx;
	}
	.conpaddin{
		padding-bottom: 30rpx;
	}
	.openshop{
		width: 95%;
		margin: 0 auto;
		background: #FFFFFF;
		border-radius: 10rpx;
		margin-top: 15rpx;
		.title-ght{
			width: 90%;
			margin: 0 auto;
			font-weight: 400;
			font-size: 26rpx;
			color: #333232;
			border-bottom: 1px solid #CCCCCC;
			height: 70rpx;
			line-height: 70rpx;
		}
		.openshopMain{
			width: 90%;
			margin: 0 auto;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
	}
	.open-name{
		font-weight: bold;
		font-size: 26rpx;
		color: #333232;
		height: 71rpx;
		line-height: 71rpx;
		width: 30%;
		white-space: nowrap;
	}
	.op-right{
		width: 70%;
		input{
			width: 100%;
			text-align: right;
			height: 100%;
			font-weight: 400;
			font-size: 26rpx;
			color: #737373;
		}
	}
	.op-right-coer{
		display: flex;
		align-items: center;
		width: 70%;
		input{
			width: 95%;
			text-align: right;
			height: 100%;
			font-weight: 400;
			font-size: 26rpx;
			color: #333;
		}
		image{
			width: 9rpx;
			height: 17rpx;
			margin-left: 15rpx;
		}
	}
	.op-coer{
		display: flex;
		align-items: center;
		width: 70%;
		input{
			text-align: right;
			height: 100%;
			font-weight: 400;
			font-size: 26rpx;
			color: #737373;
		}
		.huoCode{
			width: 148rpx;
			height: 40rpx;
			background: #F2F2F2;
			border-radius: 20rpx;
			font-weight: 400;
			font-size: 21rpx;
			color: #BFBFBF;
			text-align: center;
			line-height: 40rpx;
			margin-left: 100rpx;
		}
	}
	.open-top{
		height: 81rpx;
		line-height: 81rpx;
	}
	.sel-btn{
		display: flex;
		align-items: center;
		.er-li{
			border-radius: 27rpx;
			border: 1px solid #A6A6A6;
			width: 138rpx;
			height: 54rpx;
			margin-left: 56rpx;
			text-align: center;
			line-height: 54rpx;
			font-weight: 400;
			font-size: 21rpx;
			color: #333333;
		}
		.tab-active{
			background: #FFF2F2;
			border-radius: 27rpx;
			border: 1px solid #FE4040;
			color: #FF4040;
		}
	}
	.btomBor{
		border-bottom: 1px solid #CCCCCC;
		padding-bottom: 10rpx;
	}
	.add-img{
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 25rpx;
		width: 90%;
		margin: 0 auto;
		.add-comgj{
			.tit-name{
				font-weight: bold;
				font-size: 26rpx;
				color: #333232;
				line-height: 103rpx;
				height: 103rpx;
			}
			.comImage{
				width: 314rpx;
				height: 221rpx;
				background: #FFFFFF;
				border-radius: 5rpx;
				position: relative;
				.txt{
					width: 100%;
					position: absolute;
					z-index: 2;
					text-align: center;
					margin-top: 125rpx;
					font-weight: 400;
					font-size: 21rpx;
					color: #A6A6A6;
				}
				image{
					width: 100%;
					height: 100%;
					border-radius: 5rpx;
				}
			}
		}
		.cdf-hj{
			width: 100%;
			text-align: center;
			.comImage{
				width: 100%;
				height: 220rpx;
			}
		}
	}
	.tishi{
		font-weight: 400;
		font-size: 21rpx;
		color: #CC915C;
		width: 90%;
		margin: 0 auto;
		display: flex;
		position: relative;
		min-height: 65rpx;
		margin-top: 20rpx;
		.img{
			width: 5%;
			margin-top: 5rpx;
			image{
				width: 24rpx;
				height: 24rpx;
				margin-right: 5rpx;
			}
		}
		
	}
	.openlook{
		position: absolute;
		right: 0;
		bottom: 0;
		font-weight: 400;
		font-size: 21rpx;
		color: #FF4040;
		image{
			width: 8rpx;
			height: 17rpx;
		}
	}
	.fiweboom{
		width: 95%;
		margin: 0 auto;
		margin-top: 35rpx;
		padding-bottom: 40rpx;
		.comfer{
			display: flex;
			align-items: center;
			font-weight: 400;
			font-size: 21rpx;
			color: #737373;
			text{
				color: #FF4040;
			}
			image{
				width: 31rpx;
				height: 31rpx;
				margin-right: 15rpx;
			}
		}
		.submitReview{
			width: 80%;
			margin: 0 auto;
			background-color: #FF8B88;
			border-radius: 25px;
			height: 70rpx;
			line-height: 70rpx;
			text-align: center;
			color: #fff;
			margin-top: 38rpx;
		}
	}
</style>